package com.margo.project;



import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@SpringBootApplication
@EnableTransactionManagement
@MapperScan("com.comtop.project.mobile.buildplan.mapper") // 将项目中对应的mapper类的路径加进来就可以了
public class SpringbootApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringbootApplication.class, args);
	}

//	@Bean
//	public ObjectMapper getObjectMapper() {
//		ObjectMapper mapper = new ObjectMapper();
//		mapper.setSerializationInclusion(Include.NON_NULL);
//		// 设置输入时忽略JSON字符串中存在而Java对象实际没有的属性
//		mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
//
//		mapper.setDateFormat(new SimpleDateFormat("yyyy-MM-dd HH:mm"));
//		return mapper;
//	}
}
